package GameEngine.Animation.Translation;

import java.util.Comparator;

public class KeyFrameComparator implements Comparator<KeyFrame> {

	@Override
	public int compare(KeyFrame k1, KeyFrame k2) {
		if (k1.getFrameNumber() < k2.getFrameNumber()) {
			return -1;
		}
		if (k1.getFrameNumber() > k2.getFrameNumber()) {
			return 1;
		}
		return 0;
	}

}
